MutualTlsAuthentication.fromJson constructor

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

Implementation

factory MutualTlsAuthentication.fromJson(Map<String, dynamic> json) {
  return MutualTlsAuthentication(
    truststoreUri: json['truststoreUri'] as String?,
    truststoreVersion: json['truststoreVersion'] as String?,
    truststoreWarnings: (json['truststoreWarnings'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}