CreateCertificateResult.fromJson constructor

CreateCertificateResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory CreateCertificateResult.fromJson(Map<String, dynamic> json) {
  return CreateCertificateResult(
    certificate: json['certificate'] != null
        ? CertificateSummary.fromJson(
            json['certificate'] as Map<String, dynamic>)
        : null,
    operations: (json['operations'] as List?)
        ?.whereNotNull()
        .map((e) => Operation.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}