GeoLocationRow.fromJson constructor
- Map<
String, dynamic> json, { - ValueSerializer? serializer,
Implementation
factory GeoLocationRow.fromJson(Map<String, dynamic> json,
{ValueSerializer? serializer}) {
serializer ??= driftRuntimeOptions.defaultSerializer;
return GeoLocationRow(
ip: serializer.fromJson<String>(json['ip']),
data: serializer.fromJson<String>(json['data']),
language: serializer.fromJson<String?>(json['language']),
updatedAt: serializer.fromJson<PreciseDateTime>(json['updatedAt']),
);
}