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