$Endpoint.fromJson constructor Null safety

$Endpoint.fromJson(
  1. Map json_
)

Implementation

$Endpoint.fromJson(core.Map json_)
    : this(
        aliases: json_.containsKey('aliases')
            ? (json_['aliases'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        allowCors: json_.containsKey('allowCors')
            ? json_['allowCors'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        target: json_.containsKey('target')
            ? json_['target'] as core.String
            : null,
      );