toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final name = this.name;
  final createTableDefaultPermissions = this.createTableDefaultPermissions;
  final description = this.description;
  final locationUri = this.locationUri;
  final parameters = this.parameters;
  final targetDatabase = this.targetDatabase;
  return {
    'Name': name,
    if (createTableDefaultPermissions != null)
      'CreateTableDefaultPermissions': createTableDefaultPermissions,
    if (description != null) 'Description': description,
    if (locationUri != null) 'LocationUri': locationUri,
    if (parameters != null) 'Parameters': parameters,
    if (targetDatabase != null) 'TargetDatabase': targetDatabase,
  };
}