ListCompaniesResponse.fromJson constructor

ListCompaniesResponse.fromJson(
  1. Map json_
)

Implementation

ListCompaniesResponse.fromJson(core.Map json_)
    : this(
        companies: json_.containsKey('companies')
            ? (json_['companies'] as core.List)
                .map((value) => Company.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metadata: json_.containsKey('metadata')
            ? ResponseMetadata.fromJson(
                json_['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
      );