toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final provider = this.provider;
  final resources = this.resources;
  return {
    if (provider != null) 'provider': provider,
    if (resources != null) 'resources': resources,
  };
}