Command constructor

Command(
  1. String payload
)

Implementation

Command(String payload) {
  data = jsonDecode(payload);
}