FootballPlayerData.fromJson constructor
FootballPlayerData.fromJson(
- Map<String, dynamic> json, {
- ValueSerializer? serializer,
})
Implementation
factory FootballPlayerData.fromJson(
Map<String, dynamic> json, {
ValueSerializer? serializer,
}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return FootballPlayerData(
id: serializer.fromJson<int>(json['id']),
fullName: serializer.fromJson<String>(json['fullName']),
birthday: serializer.fromJson<DateTime>(json['birthday']),
countryId: serializer.fromJson<String>(json['countryId']),
imagePath: serializer.fromJson<String?>(json['imagePath']),
description: serializer.fromJson<String?>(json['description']),
);
}