GenerateAccessTokenRequest.fromJson constructor Null safety

GenerateAccessTokenRequest.fromJson(
  1. Map _json
)

Implementation

GenerateAccessTokenRequest.fromJson(core.Map _json)
    : this(
        delegates: _json.containsKey('delegates')
            ? (_json['delegates'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        lifetime: _json.containsKey('lifetime')
            ? _json['lifetime'] as core.String
            : null,
        scope: _json.containsKey('scope')
            ? (_json['scope'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );