Implements Response.fromJson().