CreateCustomFieldContext.fromJson constructor

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

Implementation

factory CreateCustomFieldContext.fromJson(Map<String, Object?> json) {
  return CreateCustomFieldContext(
    description: json[r'description'] as String?,
    id: json[r'id'] as String?,
    issueTypeIds: (json[r'issueTypeIds'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    name: json[r'name'] as String? ?? '',
    projectIds: (json[r'projectIds'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}