PlayerName.fromJson constructor Null safety

PlayerName.fromJson(
  1. Map _json
)

Implementation

PlayerName.fromJson(core.Map _json)
    : this(
        familyName: _json.containsKey('familyName')
            ? _json['familyName'] as core.String
            : null,
        givenName: _json.containsKey('givenName')
            ? _json['givenName'] as core.String
            : null,
      );