toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result$data = <String, dynamic>{};
  if (_$data.containsKey('definition')) {
    final l$definition = definition;
    result$data['definition'] = l$definition == null
        ? null
        : toJson$Enum$OrderEmailActionEnum(l$definition);
  }
  if (_$data.containsKey('enabled')) {
    final l$enabled = enabled;
    result$data['enabled'] = l$enabled;
  }
  return result$data;
}