Environment.fromJson constructor

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

Implementation

factory Environment.fromJson(Map<String, dynamic> json) {
  return Environment(
    arn: json['arn'] as String?,
    connectionType: (json['connectionType'] as String?)?.toConnectionType(),
    description: json['description'] as String?,
    id: json['id'] as String?,
    lifecycle: json['lifecycle'] != null
        ? EnvironmentLifecycle.fromJson(
            json['lifecycle'] as Map<String, dynamic>)
        : null,
    name: json['name'] as String?,
    ownerArn: json['ownerArn'] as String?,
    type: (json['type'] as String?)?.toEnvironmentType(),
  );
}