Log.fromMap constructor

Log.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Log.fromMap(Map<String, dynamic> map) {
  return Log(
    event: map['event'].toString(),
    userId: map['userId'].toString(),
    userEmail: map['userEmail'].toString(),
    userName: map['userName'].toString(),
    mode: map['mode'].toString(),
    ip: map['ip'].toString(),
    time: map['time'].toString(),
    osCode: map['osCode'].toString(),
    osName: map['osName'].toString(),
    osVersion: map['osVersion'].toString(),
    clientType: map['clientType'].toString(),
    clientCode: map['clientCode'].toString(),
    clientName: map['clientName'].toString(),
    clientVersion: map['clientVersion'].toString(),
    clientEngine: map['clientEngine'].toString(),
    clientEngineVersion: map['clientEngineVersion'].toString(),
    deviceName: map['deviceName'].toString(),
    deviceBrand: map['deviceBrand'].toString(),
    deviceModel: map['deviceModel'].toString(),
    countryCode: map['countryCode'].toString(),
    countryName: map['countryName'].toString(),
  );
}