toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => <String, dynamic>{
  'posId': posId,
  if (timeout != const Duration(milliseconds: 3500))
    'timeout': timeout.inMilliseconds / 1000.0,
  if (preload) 'preload': true,
  if (logo != null) 'logo': logo!.toJson(),
  if (android != null) 'android': android!.toJson(),
  if (ios != null) 'ios': ios!.toJson(),
};