toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (userId != null) {
    _json[r'user_id'] = userId;
  }
  if (termsOfServiceId != null) {
    _json[r'terms_of_service_id'] = termsOfServiceId;
  }
  if (createAt != null) {
    _json[r'create_at'] = createAt;
  }
  return _json;
}