PackageModel.fromMap constructor
PackageModel.fromMap(
- Map<String, dynamic> data
)
Implementation
factory PackageModel.fromMap(Map<String, dynamic> data) => PackageModel(
packageid: data['packageid'] as String?,
quality: data['quality'] as String?,
streamtype: data['streamtype'] as String?,
streammode: data['streammode'] as String?,
drmscheme: data['drmscheme'] as List<dynamic>?,
streamfilename: data['streamfilename'] as String?,
packagedfilelist: data['packagedfilelist'] == null
? null
: Packagedfilelist.fromMap(
data['packagedfilelist'] as Map<String, dynamic>),
clearlead: data['clearlead'] as int?,
);