OrganizationDTO.fromJson constructor

OrganizationDTO.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory OrganizationDTO.fromJson(Map<String, Object?> json) {
  return OrganizationDTO(
    links: json[r'_links'] != null
        ? SelfLinkDTO.fromJson(json[r'_links']! as Map<String, Object?>)
        : null,
    created: json[r'created'] != null
        ? DateDTO.fromJson(json[r'created']! as Map<String, Object?>)
        : null,
    id: json[r'id'] as String?,
    name: json[r'name'] as String?,
  );
}