Credit.fromJson(Map<String, dynamic> json) { price = json['price'] != null ? Price.fromJson(json['price']) : null; name = json['name']; label = json['label']; id = json['id']; }