toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() => {
      'udid': udid,
      'name': name,
      'state': state,
      if (osVersion != null) 'osVersion': osVersion,
      if (deviceType != null) 'deviceType': deviceType,
      if (appearance != null) 'appearance': appearance,
      if (contentSize != null) 'contentSize': contentSize,
      if (biometricEnrolled != null) 'biometricEnrolled': biometricEnrolled,
    };