DatastoreSummary.fromJson constructor
DatastoreSummary.fromJson(
- Map<String, dynamic> json
)
Implementation
factory DatastoreSummary.fromJson(Map<String, dynamic> json) {
return DatastoreSummary(
creationTime: timeStampFromJson(json['creationTime']),
datastoreName: json['datastoreName'] as String?,
datastoreStorage: json['datastoreStorage'] != null
? DatastoreStorageSummary.fromJson(
json['datastoreStorage'] as Map<String, dynamic>)
: null,
fileFormatType: (json['fileFormatType'] as String?)?.toFileFormatType(),
lastMessageArrivalTime: timeStampFromJson(json['lastMessageArrivalTime']),
lastUpdateTime: timeStampFromJson(json['lastUpdateTime']),
status: (json['status'] as String?)?.toDatastoreStatus(),
);
}