GoogleCloudAiplatformV1Content.fromJson constructor

GoogleCloudAiplatformV1Content.fromJson(
  1. Map json_
)

Implementation

GoogleCloudAiplatformV1Content.fromJson(core.Map json_)
    : this(
        parts: json_.containsKey('parts')
            ? (json_['parts'] as core.List)
                .map((value) => GoogleCloudAiplatformV1Part.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        role: json_.containsKey('role') ? json_['role'] as core.String : null,
      );