ContactData.fromJson constructor

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

Implementation

factory ContactData.fromJson(Map<String, dynamic> json) {
  return ContactData(
    contactId: json['contactId'] as String?,
    contactStatus: (json['contactStatus'] as String?)?.toContactStatus(),
    endTime: timeStampFromJson(json['endTime']),
    errorMessage: json['errorMessage'] as String?,
    groundStation: json['groundStation'] as String?,
    maximumElevation: json['maximumElevation'] != null
        ? Elevation.fromJson(json['maximumElevation'] as Map<String, dynamic>)
        : null,
    missionProfileArn: json['missionProfileArn'] as String?,
    postPassEndTime: timeStampFromJson(json['postPassEndTime']),
    prePassStartTime: timeStampFromJson(json['prePassStartTime']),
    region: json['region'] as String?,
    satelliteArn: json['satelliteArn'] as String?,
    startTime: timeStampFromJson(json['startTime']),
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}