Map<String, dynamic> toMap() { Map<String, dynamic> map = {}; if (i != null) { map['i'] = i; } return map; }