toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final result = <String, dynamic>{};
  if (name != null) {
    result['name'] = name;
  }
  if (custom != null) {
    result['custom'] = custom;
  }
  return result;
}