CreatePriorityDetails.fromJson constructor

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

Implementation

factory CreatePriorityDetails.fromJson(Map<String, Object?> json) {
  return CreatePriorityDetails(
    description: json[r'description'] as String?,
    iconUrl: json[r'iconUrl'] != null
        ? CreatePriorityDetailsIconUrl.fromValue(json[r'iconUrl']! as String)
        : null,
    name: json[r'name'] as String? ?? '',
    statusColor: json[r'statusColor'] as String? ?? '',
  );
}