toJson method

Map<String, dynamic> toJson()

Convert to JSON.

Implementation

Map<String, dynamic> toJson() => {
      'componentId': componentId,
      'version': version,
      if (type != null) 'type': type,
    };