SubjectDescription.fromJson constructor

SubjectDescription.fromJson(
  1. Map json_
)

Implementation

SubjectDescription.fromJson(core.Map json_)
    : this(
        hexSerialNumber: json_.containsKey('hexSerialNumber')
            ? json_['hexSerialNumber'] as core.String
            : null,
        lifetime: json_.containsKey('lifetime')
            ? json_['lifetime'] as core.String
            : null,
        notAfterTime: json_.containsKey('notAfterTime')
            ? json_['notAfterTime'] as core.String
            : null,
        notBeforeTime: json_.containsKey('notBeforeTime')
            ? json_['notBeforeTime'] 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,
      );