UsageResourceResult.fromJson constructor

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

Implementation

factory UsageResourceResult.fromJson(Map<String, dynamic> json) {
  return UsageResourceResult(
    resource: json['resource'] as String?,
    total: json['total'] != null
        ? Total.fromJson(json['total'] as Map<String, dynamic>)
        : null,
  );
}