CoherenceInput.fromJson constructor
CoherenceInput.fromJson(
- Object? j
Implementation
factory CoherenceInput.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return CoherenceInput(
metricSpec: switch (json['metricSpec']) {
null => null,
Object $1 => CoherenceSpec.fromJson($1),
},
instance: switch (json['instance']) {
null => null,
Object $1 => CoherenceInstance.fromJson($1),
},
);
}