toJson method

Map<String, dynamic> toJson()

Implementation

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