AppSummary.fromJson constructor

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

Implementation

factory AppSummary.fromJson(Map<String, dynamic> json) {
  return AppSummary(
    appId: json['appId'] as String?,
    creationTime: timeStampFromJson(json['creationTime']),
    description: json['description'] as String?,
    importedAppId: json['importedAppId'] as String?,
    lastModified: timeStampFromJson(json['lastModified']),
    latestReplicationTime: timeStampFromJson(json['latestReplicationTime']),
    launchConfigurationStatus: (json['launchConfigurationStatus'] as String?)
        ?.toAppLaunchConfigurationStatus(),
    launchDetails: json['launchDetails'] != null
        ? LaunchDetails.fromJson(
            json['launchDetails'] as Map<String, dynamic>)
        : null,
    launchStatus: (json['launchStatus'] as String?)?.toAppLaunchStatus(),
    launchStatusMessage: json['launchStatusMessage'] as String?,
    name: json['name'] as String?,
    replicationConfigurationStatus:
        (json['replicationConfigurationStatus'] as String?)
            ?.toAppReplicationConfigurationStatus(),
    replicationStatus:
        (json['replicationStatus'] as String?)?.toAppReplicationStatus(),
    replicationStatusMessage: json['replicationStatusMessage'] as String?,
    roleName: json['roleName'] as String?,
    status: (json['status'] as String?)?.toAppStatus(),
    statusMessage: json['statusMessage'] as String?,
    totalServerGroups: json['totalServerGroups'] as int?,
    totalServers: json['totalServers'] as int?,
  );
}