MiPushCommandMessageEntity.fromJson constructor

MiPushCommandMessageEntity.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MiPushCommandMessageEntity.fromJson(Map<String, dynamic> json) {
  return MiPushCommandMessageEntity(
    command: json['command'],
    commandArguments: json['commandArguments'] != null
        ? json['commandArguments'].cast<String>()
        : null,
    resultCode: json['resultCode'],
  );
}