ProjectDescription.fromJson constructor

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

Implementation

factory ProjectDescription.fromJson(Map<String, dynamic> json) {
  return ProjectDescription(
    createdDate: nonNullableTimeStampFromJson(json['createdDate'] as Object),
    projectName: json['projectName'] as String,
    updatedDate: nonNullableTimeStampFromJson(json['updatedDate'] as Object),
    arn: json['arn'] as String?,
    description: json['description'] as String?,
    placementTemplate: json['placementTemplate'] != null
        ? PlacementTemplate.fromJson(
            json['placementTemplate'] as Map<String, dynamic>)
        : null,
    tags: (json['tags'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k, e as String)),
  );
}