ListServicesResponse.fromJson constructor Null safety

ListServicesResponse.fromJson(
  1. Map _json
)

Implementation

ListServicesResponse.fromJson(core.Map _json)
    : this(
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
        services: _json.containsKey('services')
            ? (_json['services'] as core.List)
                .map((value) => Service.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );