ServerCapacity.fromJson constructor
ServerCapacity.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ServerCapacity.fromJson(Map<String, dynamic> json) {
return ServerCapacity(
totalStorageBytes: json['totalStorageBytes'] as int,
usedStorageBytes: json['usedStorageBytes'] as int,
availableStorageBytes: json['availableStorageBytes'] as int,
messageCount: json['messageCount'] as int,
activeMailboxes: json['activeMailboxes'] as int,
healthScore: (json['healthScore'] as num).toDouble(),
);
}