CsrExtensions.fromJson constructor

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

Implementation

factory CsrExtensions.fromJson(Map<String, dynamic> json) {
  return CsrExtensions(
    keyUsage: json['KeyUsage'] != null
        ? KeyUsage.fromJson(json['KeyUsage'] as Map<String, dynamic>)
        : null,
    subjectInformationAccess: (json['SubjectInformationAccess'] as List?)
        ?.whereNotNull()
        .map((e) => AccessDescription.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}