Action.fromJson constructor

Action.fromJson(
  1. Map json_
)

Implementation

Action.fromJson(core.Map json_)
    : this(
        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,
        name: json_.containsKey('name') ? json_['name'] as core.String : 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,
      );