toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (connection != null) {
    _json[r'connection'] = connection;
  }
  if (gsm != null) {
    _json[r'gsm'] = gsm;
  }
  if (ipv4 != null) {
    _json[r'ipv4'] = ipv4;
  }
  if (bearers != null) {
    _json[r'bearers'] = bearers;
  }
  if (m3gpp != null) {
    _json[r'm3gpp'] = m3gpp;
  }
  if (sim != null) {
    _json[r'sim'] = sim;
  }
  return _json;
}