OnlineAcceptance.fromJson constructor

OnlineAcceptance.fromJson(
  1. Object? json
)

Implementation

factory OnlineAcceptance.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return OnlineAcceptance(
    ipAddress:
        map['ip_address'] == null ? null : (map['ip_address'] as String),
    userAgent:
        map['user_agent'] == null ? null : (map['user_agent'] as String),
  );
}