toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of this class.

Implementation

Map<String, dynamic> toJson() {
  return {
    'name': name,
    'defType': defType,
  };
}