toJson method
Implementation
@override
Object toJson() => {
'name': name,
'destination': destination,
if (filter.isNotDefault) 'filter': filter,
if (description.isNotDefault) 'description': description,
if (disabled.isNotDefault) 'disabled': disabled,
if (exclusions.isNotDefault)
'exclusions': [for (final i in exclusions) i.toJson()],
if (outputVersionFormat.isNotDefault)
'outputVersionFormat': outputVersionFormat.toJson(),
if (writerIdentity.isNotDefault) 'writerIdentity': writerIdentity,
if (includeChildren.isNotDefault) 'includeChildren': includeChildren,
if (bigqueryOptions case final bigqueryOptions?)
'bigqueryOptions': bigqueryOptions.toJson(),
if (createTime case final createTime?) 'createTime': createTime.toJson(),
if (updateTime case final updateTime?) 'updateTime': updateTime.toJson(),
};