BackendCustomMetric.fromJson constructor
BackendCustomMetric.fromJson(
- Object? j
Implementation
factory BackendCustomMetric.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return BackendCustomMetric(
dryRun: switch (json['dryRun']) {
null => null,
Object $1 => decodeBool($1),
},
maxUtilization: switch (json['maxUtilization']) {
null => null,
Object $1 => decodeDouble($1),
},
name: switch (json['name']) {
null => null,
Object $1 => decodeString($1),
},
);
}