CreateProfileRequest.fromJson constructor Null safety

CreateProfileRequest.fromJson(
  1. Map _json
)

Implementation

CreateProfileRequest.fromJson(core.Map _json)
    : this(
        deployment: _json.containsKey('deployment')
            ? Deployment.fromJson(
                _json['deployment'] as core.Map<core.String, core.dynamic>)
            : null,
        profileType: _json.containsKey('profileType')
            ? (_json['profileType'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );