Response.fromJson constructor

Response.fromJson(
  1. Map json_
)

Implementation

Response.fromJson(core.Map json_)
    : this(
        createImage: json_.containsKey('createImage')
            ? CreateImageResponse.fromJson(
                json_['createImage'] as core.Map<core.String, core.dynamic>)
            : null,
        createLine: json_.containsKey('createLine')
            ? CreateLineResponse.fromJson(
                json_['createLine'] as core.Map<core.String, core.dynamic>)
            : null,
        createShape: json_.containsKey('createShape')
            ? CreateShapeResponse.fromJson(
                json_['createShape'] as core.Map<core.String, core.dynamic>)
            : null,
        createSheetsChart: json_.containsKey('createSheetsChart')
            ? CreateSheetsChartResponse.fromJson(json_['createSheetsChart']
                as core.Map<core.String, core.dynamic>)
            : null,
        createSlide: json_.containsKey('createSlide')
            ? CreateSlideResponse.fromJson(
                json_['createSlide'] as core.Map<core.String, core.dynamic>)
            : null,
        createTable: json_.containsKey('createTable')
            ? CreateTableResponse.fromJson(
                json_['createTable'] as core.Map<core.String, core.dynamic>)
            : null,
        createVideo: json_.containsKey('createVideo')
            ? CreateVideoResponse.fromJson(
                json_['createVideo'] as core.Map<core.String, core.dynamic>)
            : null,
        duplicateObject: json_.containsKey('duplicateObject')
            ? DuplicateObjectResponse.fromJson(json_['duplicateObject']
                as core.Map<core.String, core.dynamic>)
            : null,
        groupObjects: json_.containsKey('groupObjects')
            ? GroupObjectsResponse.fromJson(
                json_['groupObjects'] as core.Map<core.String, core.dynamic>)
            : null,
        replaceAllShapesWithImage:
            json_.containsKey('replaceAllShapesWithImage')
                ? ReplaceAllShapesWithImageResponse.fromJson(
                    json_['replaceAllShapesWithImage']
                        as core.Map<core.String, core.dynamic>)
                : null,
        replaceAllShapesWithSheetsChart:
            json_.containsKey('replaceAllShapesWithSheetsChart')
                ? ReplaceAllShapesWithSheetsChartResponse.fromJson(
                    json_['replaceAllShapesWithSheetsChart']
                        as core.Map<core.String, core.dynamic>)
                : null,
        replaceAllText: json_.containsKey('replaceAllText')
            ? ReplaceAllTextResponse.fromJson(json_['replaceAllText']
                as core.Map<core.String, core.dynamic>)
            : null,
      );