Priority.fromJson constructor

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

Implementation

factory Priority.fromJson(Map<String, Object?> json) {
  return Priority(
    description: json[r'description'] as String?,
    iconUrl: json[r'iconUrl'] as String?,
    id: json[r'id'] as String?,
    isDefault: json[r'isDefault'] as bool? ?? false,
    name: json[r'name'] as String?,
    self: json[r'self'] as String?,
    statusColor: json[r'statusColor'] as String?,
  );
}