CreateIssueSecuritySchemeDetails.fromJson constructor

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

Implementation

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