LockInfo.fromJson constructor

LockInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory LockInfo.fromJson(Map<String, dynamic> json) {
  return LockInfo(
    pid: json['pid'] as int? ?? 0,
    timestamp: json['timestamp'] as String? ?? '',
    operation: json['operation'] as String? ?? 'release',
  );
}