toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return <String, dynamic>{
    'type': type,
    'name': name,
    if (id != null) 'id': id,
    if (parent != null) 'parent': parent,
    if (provider != null) 'provider': provider,
    if (version != null) 'version': version,
    if (pluginDownloadUrl != null) 'pluginDownloadURL': pluginDownloadUrl,
    if (logicalName != null) 'logicalName': logicalName,
    if (properties != null) 'properties': properties,
    if (component != null) 'component': component,
    if (remote != null) 'remote': remote,
  };
}