UserShip.fromString constructor

UserShip.fromString(
  1. String data
)

Implementation

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