PingData.fromMap constructor
Implementation
factory PingData.fromMap(Map<String, dynamic> map) {
return PingData(
response: map['response'] != null
? PingResponse.fromMap(map['response'])
: null,
summary:
map['summary'] != null ? PingSummary.fromMap(map['summary']) : null,
error: map['error'] != null ? PingError.fromMap(map['error']) : null,
);
}