toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'asset_id'] = this.assetId;
  if (this.userId != null) {
    json[r'user_id'] = this.userId;
  } else {
    json[r'user_id'] = null;
  }
    json[r'company_id'] = this.companyId;
  if (this.isActive != null) {
    json[r'is_active'] = this.isActive;
  } else {
    json[r'is_active'] = null;
  }
  return json;
}