toJson method
Implementation
Map<String, dynamic> toJson() {
return {
'platform': platform,
'identifier': identifier,
'name': name,
'version': version,
'buildNumber': buildNumber,
}..removeWhere((key, value) => value == null);
}