APIServiceStatus.fromJson constructor
Creates a APIServiceStatus from JSON data.
Implementation
factory APIServiceStatus.fromJson(Map<String, dynamic> json) {
final tempConditionsJson = json['conditions'];
final List<APIServiceCondition>? tempConditions = tempConditionsJson != null
? List<dynamic>.from(tempConditionsJson)
.map(
(e) => APIServiceCondition.fromJson(
Map<String, dynamic>.from(e),
),
)
.toList()
: null;
return APIServiceStatus(
conditions: tempConditions,
);
}