mapreduce/model.py
def from_json(cls, json):
    """Create new MapreduceSpec from the json, encoded by to_json.

    Args:
      json: json representation of MapreduceSpec.

    Returns:
      an instance of MapreduceSpec with all data deserialized from json.
    """
    mapreduce_spec = cls(json["name"],
                         json["mapreduce_id"],
                         json["mapper_spec"],
                         json.get("params"))
    return mapreduce_spec
Create new MapreduceSpec from the json, encoded by to_json.

    Args:
      json: json representation of MapreduceSpec.

    Returns:
      an instance of MapreduceSpec with all data deserialized from json.
    
Create new MapreduceSpec from the json, encoded by to_json.
Create new MapreduceSpec from the json encoded by to_json .
def from_json(cls, json):
    mapreduce_spec = cls(json["name"],
                         json["mapreduce_id"],
                         json["mapper_spec"],
                         json.get("params"))
    return mapreduce_spec
def from_json ( cls , json ) : mapreduce_spec = cls ( json [ "name" ] , json [ "mapreduce_id" ] , json [ "mapper_spec" ] , json . get ( "params" ) ) return mapreduce_spec
Create new MapreduceSpec from the json, encoded by to_json.
Create new MapreduceSpec from the json encoded by to_json .
"""Create new MapreduceSpec from the json, encoded by to_json.

    Args:
      json: json representation of MapreduceSpec.

    Returns:
      an instance of MapreduceSpec with all data deserialized from json.
    """
an instance of MapreduceSpec with all data deserialized from json.
an instance of MapreduceSpec with all data deserialized from json .
cls
json
json representation of MapreduceSpec.
json representation of MapreduceSpec .