PersonAccount.fromJson constructor
PersonAccount.fromJson(
- Object? json
Implementation
factory PersonAccount.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return PersonAccount(
date: map['date'] == null
? null
: DateTime.fromMillisecondsSinceEpoch((map['date'] as int).toInt()),
ip: map['ip'] == null ? null : (map['ip'] as String),
userAgent:
map['user_agent'] == null ? null : (map['user_agent'] as String),
);
}