LicenseResourceCommitment.fromJson constructor
LicenseResourceCommitment.fromJson(
- Object? j
Implementation
factory LicenseResourceCommitment.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return LicenseResourceCommitment(
amount: switch (json['amount']) {
null => null,
Object $1 => decodeInt64($1),
},
coresPerLicense: switch (json['coresPerLicense']) {
null => null,
Object $1 => decodeString($1),
},
license: switch (json['license']) {
null => null,
Object $1 => decodeString($1),
},
);
}