Map<String, dynamic> toJson() { var json = <String, dynamic>{}; json['type'] = type; json['is_flatten'] = isFlatten; return json; }