StatusCreate.fromJson constructor

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

Implementation

factory StatusCreate.fromJson(Map<String, Object?> json) {
  return StatusCreate(
    description: json[r'description'] as String?,
    name: json[r'name'] as String? ?? '',
    statusCategory: StatusCreateStatusCategory.fromValue(
        json[r'statusCategory'] as String? ?? ''),
  );
}