Skip to content

Instantly share code, notes, and snippets.

@yusufbiberoglu
Created July 12, 2023 16:30
Show Gist options
  • Save yusufbiberoglu/8aff0de6f306233bd15fe4d16c468ef1 to your computer and use it in GitHub Desktop.
Save yusufbiberoglu/8aff0de6f306233bd15fe4d16c468ef1 to your computer and use it in GitHub Desktop.
user_model.g.dart
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'user_model.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
UserModel _$UserModelFromJson(Map<String, dynamic> json) => UserModel(
id: json['id'] as int,
name: json['name'] as String,
surname: json['surname'] as String,
email: json['email'] as String,
);
Map<String, dynamic> _$UserModelToJson(UserModel instance) => <String, dynamic>{
'id': instance.id,
'name': instance.name,
'surname': instance.surname,
'email': instance.email,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment