DivisionSearchResult.fromJson constructor

DivisionSearchResult.fromJson(
  1. Map json_
)

Implementation

DivisionSearchResult.fromJson(core.Map json_)
    : this(
        aliases: json_.containsKey('aliases')
            ? (json_['aliases'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        ocdId:
            json_.containsKey('ocdId') ? json_['ocdId'] as core.String : null,
      );