toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (contentUri != null) 'contentUri': contentUri!,
      if (displayName != null) 'displayName': displayName!,
      if (enableAutoReload != null) 'enableAutoReload': enableAutoReload!,
      if (knowledgeTypes != null) 'knowledgeTypes': knowledgeTypes!,
      if (latestReloadStatus != null)
        'latestReloadStatus': latestReloadStatus!,
      if (metadata != null) 'metadata': metadata!,
      if (mimeType != null) 'mimeType': mimeType!,
      if (name != null) 'name': name!,
      if (rawContent != null) 'rawContent': rawContent!,
      if (state != null) 'state': state!,
    };