PayGoods.fromString constructor

PayGoods.fromString(
  1. String data
)

Implementation

factory PayGoods.fromString(String data) {
  return PayGoods.fromJson(jsonDecode(data.substring(data.indexOf('(') + 1, data.lastIndexOf(')'))));
}