toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, Object?>{
      'isImport': isImport ?? false,
      'isDeferred': isDeferred ?? false,
      'prefix': prefix ?? '',
      'target': target?.toJson(),
      if (shows?.map((f) => f).toList() case final showsValue?)
        'shows': showsValue,
      if (hides?.map((f) => f).toList() case final hidesValue?)
        'hides': hidesValue,
    };