toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dataSources = this.dataSources;
  final accountIds = this.accountIds;
  final resources = this.resources;
  return {
    'dataSources': dataSources.map((e) => e.toValue()).toList(),
    if (accountIds != null) 'accountIds': accountIds,
    if (resources != null) 'resources': resources,
  };
}