toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final action = this.action;
  final attribute = this.attribute;
  return {
    if (action != null) 'Action': action.toValue(),
    if (attribute != null) 'Attribute': attribute,
  };
}