StatusUpdate.fromJson constructor

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

Implementation

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