toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap() {
  return {
    'isForeground': isForeground,
    if (otp != null) 'otp': otp,
    if (tid != null) 'tid': tid
  };
}