CustomX.fromString constructor

CustomX.fromString(
  1. String data
)

Implementation

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