ListRegistrationsResponse.fromJson constructor

ListRegistrationsResponse.fromJson(
  1. Map _json
)

Implementation

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