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