SecuritySchemeLevelBean.fromJson constructor

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

Implementation

factory SecuritySchemeLevelBean.fromJson(Map<String, Object?> json) {
  return SecuritySchemeLevelBean(
    description: json[r'description'] as String?,
    isDefault: json[r'isDefault'] as bool? ?? false,
    members: (json[r'members'] as List<Object?>?)
            ?.map((i) => SecuritySchemeLevelMemberBean.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    name: json[r'name'] as String? ?? '',
  );
}