toUpdateJson method Null safety

Map<String, dynamic> toUpdateJson()

Implementation

Map<String, dynamic> toUpdateJson() => {
      'title': title,
      'weight': weight,
      'imgUrl': imgUrl,
      'url': url,
      'description': description,
      'expireTime': expireTime,
      'tag': tags,
    };