TlsValidationContextTrust.fromJson constructor

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

Implementation

factory TlsValidationContextTrust.fromJson(Map<String, dynamic> json) {
  return TlsValidationContextTrust(
    acm: json['acm'] != null
        ? TlsValidationContextAcmTrust.fromJson(
            json['acm'] as Map<String, dynamic>)
        : null,
    file: json['file'] != null
        ? TlsValidationContextFileTrust.fromJson(
            json['file'] as Map<String, dynamic>)
        : null,
  );
}