toJson method
Implementation
Map<String, dynamic> toJson() {
final resourceValue = this.resourceValue;
final staticValue = this.staticValue;
return {
if (resourceValue != null) 'ResourceValue': resourceValue,
if (staticValue != null) 'StaticValue': staticValue,
};
}