BackendServiceCustomMetric.fromJson constructor

BackendServiceCustomMetric.fromJson(
  1. Object? j
)

Implementation

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