DescribeContactResponse.fromJson constructor

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

Implementation

factory DescribeContactResponse.fromJson(Map<String, dynamic> json) {
  return DescribeContactResponse(
    contactId: json['contactId'] as String?,
    contactStatus: (json['contactStatus'] as String?)?.toContactStatus(),
    dataflowList: (json['dataflowList'] as List?)
        ?.whereNotNull()
        .map((e) => DataflowDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    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)),
  );
}