CommandPart.fromJson constructor

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

Implementation

factory CommandPart.fromJson(Map<String, dynamic> json) => CommandPart(
  channel: json['channel'] as String,
  reason: json['reason'] == null ? null : json['reason'] as String,
);