jsonMap method

  1. @override
Map<String, Object> jsonMap()

Implementation

@override
Map<String, Object> jsonMap() {
  Map<String, Object> map = new Map<String, Object>()
    ..['address'] = address.toString()
    ..['mask'] = mask;

  if (name != null) {
    map['name'] = name!;
  }
  if (hash != null) {
    map['hash'] = hash!;
  }
  if (hash != null) {
    map['reason'] = reason!;
  }
  String? startString = _startString;
  if (startString != null) {
    map['start'] = startString;
  }
  if (duration != null) {
    map['duration'] = duration!.inSeconds;
  }
  return map;
}