toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> result = {'action': action};
  if (os != null) {
    result['os'] = os!.toJson();
  }
  if (features != null) {
    result['features'] = features;
  }
  return result;
}