forked from eatvio/eatvio_app
18 lines
549 B
Dart
18 lines
549 B
Dart
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
part 'chat_user_model.freezed.dart';
|
|
part 'chat_user_model.g.dart';
|
|
|
|
@freezed
|
|
abstract class ChatUserModel with _$ChatUserModel {
|
|
const factory ChatUserModel({
|
|
required int id,
|
|
required String name,
|
|
required String slug,
|
|
@JsonKey(name: 'profile_photo_path') String? profilePhotoPath,
|
|
@JsonKey(name: 'profile_photo_url') String? profilePhotoUrl,
|
|
}) = _ChatUserModel;
|
|
|
|
factory ChatUserModel.fromJson(Map<String, Object?> json) => _$ChatUserModelFromJson(json);
|
|
}
|