RuntimeActionSchema.fromJson constructor

RuntimeActionSchema.fromJson(
  1. Map json_
)

Implementation

RuntimeActionSchema.fromJson(core.Map json_)
    : this(
        action: json_.containsKey('action')
            ? json_['action'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        inputJsonSchema: json_.containsKey('inputJsonSchema')
            ? JsonSchema.fromJson(json_['inputJsonSchema']
                as core.Map<core.String, core.dynamic>)
            : null,
        inputParameters: json_.containsKey('inputParameters')
            ? (json_['inputParameters'] as core.List)
                .map((value) => InputParameter.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        resultJsonSchema: json_.containsKey('resultJsonSchema')
            ? JsonSchema.fromJson(json_['resultJsonSchema']
                as core.Map<core.String, core.dynamic>)
            : null,
        resultMetadata: json_.containsKey('resultMetadata')
            ? (json_['resultMetadata'] as core.List)
                .map((value) => ResultMetadata.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );