AnomalyInstance.fromJson constructor

AnomalyInstance.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AnomalyInstance.fromJson(Map<String, dynamic> json) {
  return AnomalyInstance(
    id: json['id'] as String,
    startTime: nonNullableTimeStampFromJson(json['startTime'] as Object),
    endTime: timeStampFromJson(json['endTime']),
    userFeedback: json['userFeedback'] != null
        ? UserFeedback.fromJson(json['userFeedback'] as Map<String, dynamic>)
        : null,
  );
}