MetricxResult.fromJson constructor

MetricxResult.fromJson(
  1. Object? j
)

Implementation

factory MetricxResult.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return MetricxResult(
    score: switch (json['score']) {
      null => null,
      Object $1 => decodeDouble($1),
    },
  );
}