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