ApplicationDetail.fromJson constructor

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

Implementation

factory ApplicationDetail.fromJson(Map<String, dynamic> json) {
  return ApplicationDetail(
    applicationARN: json['ApplicationARN'] as String,
    applicationName: json['ApplicationName'] as String,
    applicationStatus:
        (json['ApplicationStatus'] as String).toApplicationStatus(),
    applicationVersionId: json['ApplicationVersionId'] as int,
    applicationCode: json['ApplicationCode'] as String?,
    applicationDescription: json['ApplicationDescription'] as String?,
    cloudWatchLoggingOptionDescriptions:
        (json['CloudWatchLoggingOptionDescriptions'] as List?)
            ?.whereNotNull()
            .map((e) => CloudWatchLoggingOptionDescription.fromJson(
                e as Map<String, dynamic>))
            .toList(),
    createTimestamp: timeStampFromJson(json['CreateTimestamp']),
    inputDescriptions: (json['InputDescriptions'] as List?)
        ?.whereNotNull()
        .map((e) => InputDescription.fromJson(e as Map<String, dynamic>))
        .toList(),
    lastUpdateTimestamp: timeStampFromJson(json['LastUpdateTimestamp']),
    outputDescriptions: (json['OutputDescriptions'] as List?)
        ?.whereNotNull()
        .map((e) => OutputDescription.fromJson(e as Map<String, dynamic>))
        .toList(),
    referenceDataSourceDescriptions:
        (json['ReferenceDataSourceDescriptions'] as List?)
            ?.whereNotNull()
            .map((e) => ReferenceDataSourceDescription.fromJson(
                e as Map<String, dynamic>))
            .toList(),
  );
}