Mutation.fromJson constructor

Mutation.fromJson(
  1. Map json_
)

Implementation

Mutation.fromJson(core.Map json_)
    : this(
        delete: json_.containsKey('delete')
            ? Delete.fromJson(
                json_['delete'] as core.Map<core.String, core.dynamic>)
            : null,
        insert: json_.containsKey('insert')
            ? Write.fromJson(
                json_['insert'] as core.Map<core.String, core.dynamic>)
            : null,
        insertOrUpdate: json_.containsKey('insertOrUpdate')
            ? Write.fromJson(json_['insertOrUpdate']
                as core.Map<core.String, core.dynamic>)
            : null,
        replace: json_.containsKey('replace')
            ? Write.fromJson(
                json_['replace'] as core.Map<core.String, core.dynamic>)
            : null,
        update: json_.containsKey('update')
            ? Write.fromJson(
                json_['update'] as core.Map<core.String, core.dynamic>)
            : null,
      );