public static function parse($json) { if (is_null($json)) { throw new AvroProtocolParseException("Protocol can't be null"); } $protocol = new AvroProtocol(); $protocol->real_parse(json_decode($json, true)); return $protocol; }
public static function parse($json) { if (is_null($json)) { throw new AvroProtocolParseException("Protocol can't be null"); } $protocol = new AvroProtocol(); $protocol->real_parse(json_decode($json, true)); return $protocol; }