ResourceQuotaStatus.fromJson constructor

ResourceQuotaStatus.fromJson(
  1. Map<String, dynamic> json
)

Creates a ResourceQuotaStatus from JSON data.

Implementation

factory ResourceQuotaStatus.fromJson(Map<String, dynamic> json) {
  final tempHardJson = json['hard'];
  final tempUsedJson = json['used'];

  final Map<String, String>? tempHard =
      tempHardJson != null ? Map<String, String>.from(tempHardJson) : null;

  final Map<String, String>? tempUsed =
      tempUsedJson != null ? Map<String, String>.from(tempUsedJson) : null;

  return ResourceQuotaStatus(
    hard: tempHard,
    used: tempUsed,
  );
}