SubjectConfig.fromJson constructor

SubjectConfig.fromJson(
  1. Map _json
)

Implementation

SubjectConfig.fromJson(core.Map _json)
    : this(
        commonName: _json.containsKey('commonName')
            ? _json['commonName'] as core.String
            : null,
        subject: _json.containsKey('subject')
            ? Subject.fromJson(
                _json['subject'] as core.Map<core.String, core.dynamic>)
            : null,
        subjectAltName: _json.containsKey('subjectAltName')
            ? SubjectAltNames.fromJson(_json['subjectAltName']
                as core.Map<core.String, core.dynamic>)
            : null,
      );