Certificate.fromJson constructor

Certificate.fromJson(
  1. Map json_
)

Implementation

Certificate.fromJson(core.Map json_)
    : this(
        issuer: json_.containsKey('issuer')
            ? json_['issuer'] as core.String
            : null,
        notAfterTime: json_.containsKey('notAfterTime')
            ? json_['notAfterTime'] as core.String
            : null,
        notBeforeTime: json_.containsKey('notBeforeTime')
            ? json_['notBeforeTime'] as core.String
            : null,
        parsed:
            json_.containsKey('parsed') ? json_['parsed'] as core.bool : null,
        rawDer: json_.containsKey('rawDer')
            ? json_['rawDer'] as core.String
            : null,
        serialNumber: json_.containsKey('serialNumber')
            ? json_['serialNumber'] as core.String
            : null,
        sha256Fingerprint: json_.containsKey('sha256Fingerprint')
            ? json_['sha256Fingerprint'] as core.String
            : null,
        subject: json_.containsKey('subject')
            ? json_['subject'] as core.String
            : null,
        subjectAlternativeDnsNames:
            json_.containsKey('subjectAlternativeDnsNames')
                ? (json_['subjectAlternativeDnsNames'] as core.List)
                    .map((value) => value as core.String)
                    .toList()
                : null,
      );