fromJson static method

SimInfo fromJson(
  1. dynamic data
)

Implementation

static SimInfo fromJson(data) {
  return SimInfo(data != null && data is List
      ? data.map<SimCard>((_card) => SimCard.fromJson(_card)).toList()
      : []);
}