AssociateSecuritySchemeWithProjectDetails.fromJson constructor

AssociateSecuritySchemeWithProjectDetails.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory AssociateSecuritySchemeWithProjectDetails.fromJson(
    Map<String, Object?> json) {
  return AssociateSecuritySchemeWithProjectDetails(
    oldToNewSecurityLevelMappings:
        (json[r'oldToNewSecurityLevelMappings'] as List<Object?>?)
                ?.map((i) => OldToNewSecurityLevelMappingsBean.fromJson(
                    i as Map<String, Object?>? ?? const {}))
                .toList() ??
            [],
    projectId: json[r'projectId'] as String? ?? '',
    schemeId: json[r'schemeId'] as String? ?? '',
  );
}