toMap method

Map<String, String> toMap()

The wire form the platform expects.

Implementation

Map<String, String> toMap() => {
      'title': title,
      if (description != null) 'description': description!,
      if (poster != null) 'poster': poster!,
      if (link != null) 'link': link!,
    };